package cn.tedu.ezhaung_project.controller;

import cn.tedu.ezhaung_project.mapper.BannerMapper;
import cn.tedu.ezhaung_project.pojo.vo.BannerSelectVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/banner/")
public class BannerController {
    @Autowired(required = false)
    BannerMapper mapper;
    @RequestMapping("select1")
    public List<BannerSelectVO>select1(){
        return mapper.select1();
    }
}
